package global

import (
	"github.com/gin-gonic/gin"
	"github.com/redis/go-redis/v9"
	"github.com/spf13/viper"
	"gorm.io/gorm"
)

// 全局变量
var (
	DB     *gorm.DB
	Router *gin.Engine
	Viper  *viper.Viper
	Redis  *redis.Client
)

type UserCtxKey string

// 常量
const (
	//操作人
	UserContextKey UserCtxKey = "User"
)
